package nl.windgazer.arachne.internal.transform;

import org.apache.tapestry5.annotations.SetupRender;
import org.apache.tapestry5.internal.services.ComponentResourcesOperation;
import org.apache.tapestry5.model.MutableComponentModel;
import org.apache.tapestry5.plastic.PlasticClass;
import org.apache.tapestry5.services.TransformConstants;

public class TransformationWorkerHelper {

	public static void transform(PlasticClass transformation, MutableComponentModel model, ComponentResourcesOperation op) {

		//TODO Figure out what this was supposed to be doing, and if I'm even still using it...
//        String opFieldName = transformation.addInjectedField(ComponentResourcesOperation.class, "operation", op);
//
//        String resourcesName = transformation.getResourcesFieldName();
//
//        String body = String.format("%s.perform(%s);", opFieldName, resourcesName);
//
//        transformation.extendMethod(TransformConstants.SETUP_RENDER_SIGNATURE, body);
//
//        model.addRenderPhase(SetupRender.class);

	}

}
